
<%@ page import="kioscodeal.Familia" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'familia.label', default: 'Familia')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="list-familia" class="content scaffold-list" role="main">	
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title"><i class="fa fa-long-arrow-right"></i> <g:message code="default.list.label" args="[entityName]" /></h3>
				</div>
				<div class="panel-body">
					<div class="row">
						<div class="col-lg-12">
							<g:if test="${flash.message}">
								<div class="message" role="status">${flash.message}</div>
							</g:if>
							<g:if test="${familiaInstanceList}">
								<div class="table-responsive">
									<table class="table table-bordered table-hover tablesorter">
										<thead>
												<tr>
					
													<g:sortableColumn class="text-center" property="titulo" title="${message(code: 'familia.titulo.label', default: 'Titulo')}" />
					
													<g:sortableColumn class="text-center" property="descripcion" title="${message(code: 'familia.descripcion.label', default: 'Descripcion')}" />
													
													<g:sortableColumn class="text-center" property="opciones" title="Opciones" />
					
												</tr>
											</thead>
											<tbody>
											<g:each in="${familiaInstanceList}" status="i" var="familiaInstance">
												<tr class="${(i % 2) == 0 ? 'even' : 'odd'}  text-center">
					
													<td><g:link action="show" id="${familiaInstance.id}">${fieldValue(bean: familiaInstance, field: "titulo")}</g:link></td>
					
													<td>${fieldValue(bean: familiaInstance, field: "descripcion")}</td>
					
													<td>
														<g:form url="[resource:familiaInstance, action:'delete']" method="DELETE">
															<fieldset class="buttons">
																<i class="fa fa-edit"></i><g:link class="edit" action="edit" resource="${familiaInstance}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
																<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Esta seguro?')}');" />
															</fieldset>
														</g:form>
													</td>
												</tr>
											</g:each>
											</tbody>
										</table>
								</div>
							</g:if>
							<g:else>
								No existen Familias dadas de alta.
							</g:else>
						</div>
					</div>
				</div>
				<div>
					<div class="pagination">
						<g:paginate total="${familiaInstanceCount ?: 0}" />
					</div>
				</div>
				<div class="nav" role="navigation">
					<div class="row">
						<div class="col-lg-3">
						</div>
						<div class="col-lg-3">
							<a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a>
						</div>
						<div class="col-lg-3">							
							<g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link>
						</div>
						<div class="col-lg-3">
						</div>
					</div>					
				</div>
			</div>
		</div>
	</body>
</html>